import * as React from "react"

import { DataTableSkeleton } from "@/components/data-table/data-table-skeleton"
import { Shell } from "@/components/shell"
import { InformationButton } from "@/components/information/information-button"
import { VendorFormStatusTable } from "@/components/form-data-stat/form-data-stat-table"


export default async function IndexPage() {

  return (
    <Shell className="gap-2">
      <div className="flex items-center justify-between space-y-2">
        <div className="flex items-center gap-2">
          <h2 className="text-2xl font-bold tracking-tight">벤더 데이터 진척도 현황</h2>
          <InformationButton pagePath="evcp/edp-progress" />
        </div>
      </div>

      <React.Suspense
        fallback={
          <DataTableSkeleton
            columnCount={6}
            searchableColumnCount={1}
            filterableColumnCount={0}
            cellWidths={["16rem", "8rem", "8rem", "8rem", "8rem", "8rem"]}
            shrinkZero
          />
        }
      >
        <VendorFormStatusTable  />
      </React.Suspense>
    </Shell>
  )
}
